package com.bluegalaxy.sitescore.service;

import com.baomidou.framework.service.ISuperService;
import com.bluegalaxy.sitescore.entity.SiteSource;
import com.bluegalaxy.sitescore.entity.TSiteSource;
import com.bluegalaxy.sitescore.entity.TbSiteSource;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2017/12/30 0030.
 */
public interface TbSiteSourceService extends ISuperService<TbSiteSource> {

   public List<SiteSource> getTbSiteSource(Integer siteId);

   public TbSiteSource getTbSiteSourceById(int id);

   public boolean caculateHWQ(TSiteSource siteSource);

   public boolean delTbSiteSource(int id);

   public BigDecimal caculateScore(BigDecimal groundWater,BigDecimal surfaceWater,BigDecimal soil,BigDecimal air);

   //判断是否可观察
   public boolean isObservable(int sid);
   //求根公式
   public  BigDecimal sqrt(BigDecimal number, int scale, int roundingMode);
}
